package com.xt.tea.entity.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@TableName("torder")
@AllArgsConstructor
@NoArgsConstructor
public class Order extends AbstractDomain{
    @TableField("uid")
    private Integer uid;

    @TableField("did")
    private Integer did;
    @TableField(exist = false)
    private List<TeaOrder> teaOrders;

    @TableField(value = "tea_configs")
    private String orderMessage;

    @TableField("price")
    private BigDecimal totalPrice;

    @TableField(exist = false)
    private String token;
}
